<?php 

include'../classes/db.php';

$x=new DbConnect();
$con=$x->getConnection();

$emp=$_GET['empno'];

$result=mysql_query("select f_name,l_name from employee where emp_no='$emp'",$con);
$num=mysql_num_rows($result);
	if($num==0)
		{
		echo"false";
		}
	else
		{
			while($row=mysql_fetch_array($result))
				{
				$fname=$row['f_name'];
				$lname=$row['l_name'];
				}    
				echo"NAME- "."$fname "." $lname";
		}
?>
